<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>定位-绝对定位</title>
</head>

<style>
   * {
      padding: 0;
      margin: 0; 
   }

   .box { 
       /* float: left;  */ /* 均设置了浮动，但是浮动只压盒子，未压文字 */ 
       position: absolute;
       width: 200px;
       height: 200px;
       background-color: skyblue; 
   }

   .demo-right {
        float : left ;
        width: 10px;
       height: 10px;
   }

</style>
<body>
    <div class="box"></div>
    <!-- 均设置了浮动，但是浮动只压盒子，未压文字 -->
    <!-- 绝对定位会遮盖住下述盒子 -->
    <span>爱老虎油！！！</span>
    <div class="demo-right"><span>爱老虎油！！！</span></div>
</body>
</html>